package com.tyk.bookstore.back.system.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description PermissionResultEnum
 */
public enum PermissionResultEnum implements ResultEnum {
    PERMISSION_NOT_FOUND(3_01_03_01, "权限不存在" ),
    PERMISSION_NAME_ALREADY_EXISTS(3_01_03_02, "权限名称已存在"),
    PERMISSION_CODE_ALREADY_EXISTS(3_01_03_03, "权限字符串已存在" );

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.message;
    }

    PermissionResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private final Integer code;

    private final String message;
}
